import { addKeywordStyle } from '@/utils'
export default {
    install(app: any, options?: any) {
        app.directive('render', {
            beforeMount(el: HTMLElement, binding: any) {
                const { keyword, content, className = '', style = "color:blue;" } = binding.value as any
                el.append(addKeywordStyle(keyword, content, className, style))
            }
        });
    }
}